package com.clickpaas.materialsprocurement.service.Impl;

import com.bizcloud.ipaas.t0ba0ba6afb694026b6b4e4e048af2b43.d20210202135416.model.SrmselectDTO;
import com.clickpaas.materialsprocurement.dao.SrmSelectDao;
import com.clickpaas.materialsprocurement.entity.SrmSelectEntity;
import com.clickpaas.materialsprocurement.service.SelectionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class SelectionServiceImpl implements SelectionService {
    @Resource
    private SrmSelectDao srmSelectDao;
    /**
     * 获取甄选对象
     *
     * @param srmSelectEntity
     * @return
     */
    @Override
    public List<SrmselectDTO> getSelectionInfo(SrmSelectEntity srmSelectEntity) {
        //TODO
        return null;
    }

    /**
     * 甄选数据转换为bean
     *
     * @param list
     * @return
     */
    @Override
    public List<SrmSelectEntity> selectionDataConver(List<SrmselectDTO> list) {
        //TODO
        return null;
    }

    /**
     * 甄选数据入库
     *
     * @param srmSelectEntity
     * @return
     */
    @Override
    public boolean insertSelectionInfo(SrmSelectEntity srmSelectEntity) {
        if (null == srmSelectEntity)return false;
        return srmSelectDao.insertSelectionInfo(srmSelectEntity);
    }
}
